package demo.dubbo.server;

import com.alibaba.dubbo.config.spring.ReferenceBean;
import org.mvnsearch.spring.boot.dubbo.DubboAutoConfiguration;
import org.mvnsearch.spring.boot.dubbo.DubboBasedAutoConfiguration;
import org.springframework.boot.autoconfigure.AutoConfigureAfter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Created by lushun.chen on 2017/3/19.
 *
 * @author lushun.chen
 */
@Configuration
@AutoConfigureAfter(DubboAutoConfiguration.class)
public class DemoDubboAutoConfig extends DubboBasedAutoConfiguration {

    @Bean
    public ReferenceBean demoDubboServer() {
        return getConsumerBean(DemoServer.class, "", 10000);
    }
}
